﻿using Microsoft.AspNetCore;
using Microsoft.AspNetCore.Hosting;

namespace Quantum.SignalR
{
    public class ServerHosting
    {
        public static void Startup(string[] args)
        {
            Startup<ServerStartup>(args);
        }

        public static void Startup<T>(string[] args)
        {
            var host = WebHost.CreateDefaultBuilder(args)
                .UseStartup(typeof(T))
                .Build();

            host.Run();
        }
    }
}
